<script setup lang="ts">
    const emits = defineEmits(['parentClick']); // this.$emit的替代
    const clickEmits = ()=>{
        emits("parentClick",'data')
    }
</script>
<template>
    <button @click="clickEmits">子传父</button>
</template>